package com.zhang.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 频道实体类
 */

@Data
@NoArgsConstructor
public class ChannelBean {

    /**频道id*/
    private int channelId;
    /**频道名*/
    private String channelName;
    /**频道描述*/
    private String channelInfo;
    /**主帖数*/
    private int num;

    public ChannelBean(String channelName, String channelInfo) {
        this.channelName = channelName;
        this.channelInfo = channelInfo;
    }

    @Override
    public String toString() {
        return "ChannelBean{" +
                "channelId=" + channelId +
                ", channelName='" + channelName + '\'' +
                ", channelInfo='" + channelInfo + '\'' +
                ", num=" + num +
                '}' + "\n";
    }
}
